package com.service.system.advert;

import com.entity.system.Advert;
import com.entity.system.BannerConfig;
import com.entity.system.NewsCycle;
import com.entity.system.PopupAdvert;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @Author Alexpy
 * @CreateTime 2018/3/2 14:20
 * @Description
 * @Version 1.0
 */
@Service
public interface AdvertService {
    Map<String, Object> getListByCondition(Map<String, Object> params);

    /**
     * 修改是否置顶
     * @param topFlag
     * @return
     */
    public Map<String,Object> updateTopFlag(int topFlag,Long id);

    /**
     * 审核不通过
     * @param id
     * @return
     */
    public Map<String,Object> noThrough(Long id);

    /**
     * 审核通过
     * @param id
     * @return
     */
    public Map<String,Object> through(Long id);

    /**
     * 查询banner列表
     * @param map
     * @return
     */
    public Map<String,Object> findBannerList(Map<String,String> map);

    /**
     * 删除banner
     * @param id
     * @return
     */
    public Map<String,Object> delBanner(String id);

    /**
     * 修改banner
     * @param bannerConfig
     * @return
     */
    public Map<String,Object> updateBanner(BannerConfig bannerConfig);

    /**
     * 添加banner
     * @param bannerConfig
     * @return
     */
    public Map<String,Object> addBanner(BannerConfig bannerConfig);

    /**
     * 查询走马灯列表
     * @return
     */
    public Map<String,Object> findNewsCycleList(Map<String,String> map);

    /**
     * 修改走马灯
     * @param newsCycle
     * @return
     */
    public Map<String,Object> updateNewsCycle(NewsCycle newsCycle);

    /**
     * 删除走马灯
     * @param id
     * @return
     */
    public Map<String,Object> delNewsCycle(Long id);

    /**
     * 添加走马灯
     * @param newsCycle
     * @return
     */
    public Map<String,Object> addNewsCycle(NewsCycle newsCycle);

    /**
     * 查询弹窗公告列表
     * @param map
     * @return
     */
    public Map<String,Object> findPopupAdvertList(Map<String,String> map);

    /**
     * 删除弹窗公告
     * @param id
     * @return
     */
    public Map<String,Object> delPopupAdvert(Long id);

    /**
     * 修改弹窗公告
     * @param popupAdvert
     * @return
     */
    public Map<String,Object> updatePopupAdvert(PopupAdvert popupAdvert);

    /**
     * 添加弹窗公告
     * @param popupAdvert
     * @return
     */
    public Map<String,Object> addPopupAdvert(PopupAdvert popupAdvert);

    /**
     * 查询新用户福袋列表
     * @param map
     * @return
     */
    public Map<String,Object> findNewUserAdvert(Map<String,String> map);

    /**
     * 删除新用户福袋
     * @param id
     * @return
     */
    public Map<String,Object> delNewUserAdvert(Long id);

    /**
     * 添加新用户福袋
     * @param advert
     * @return
     */
    public Map<String,Object> addNewUserAdvert(Advert advert);

    /**
     * 修改新用户福袋
     * @param advert
     * @return
     */
    public Map<String,Object> updateNewUserAdvert(Advert advert);

    /**
     * 查询广告余额
     * @param id
     * @return
     */
    public Map<String,Object> findBalance(Long id);

    /**
     * 广告下线
     * @param id
     * @return
     */
    public Map<String,Object> offlineAdvert(Long id);
}
